<h1 class='text-info'> Serviço - Editar ou Inserir</h1>

<form role="form" action="<?= $link_form ?>"  method="post" class="form-horizontal">
    <input type="hidden" name="idservico" value="<?= $s->getIdservico(); ?>">
    <div class="form-group">
        <label class="col-xs-1 col-sm-1 col-md-1 col-lg-1" for="nome">Nome:</label>
        <div class="col-xs-9 col-sm-9 col-md-9 col-lg-9 " >
            <input class="form-control" type="text" id="nome" name="nome" value="<?= $s->getNome(); ?>" placeholder="Informe o nome">
        </div>
        <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 ">
            <!--<span class="glyphicon glyphicon-remove"></span>-->
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-1 col-sm-1 col-md-1 col-lg-1" for="descricao">Descricao:</label>
        <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3" >
            <textarea class="form-control" type="texta" id="descricao" name="descricao"><?= $s->getDescricao(); ?></textarea>
        </div>
        <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 ">
            <!--<span class="glyphicon glyphicon-remove"></span>-->
        </div>

        <label class="col-xs-1 col-sm-1 col-md-1 col-lg-1" for="precobase">Preço:</label>
        <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3" >
            <input class="form-control" type="text" id="precobase" name="precobase" value="<?= $s->getPrecobase(); ?>" placeholder="Informe o preço">
        </div>
        <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 ">
            <!--<span class="glyphicon glyphicon-remove"></span>-->
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-1 col-sm-1 col-md-1 col-lg-1" for="desconto">Desconto:</label>
        <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3 " >
            <input class="form-control" type="text" id="desconto" name="desconto" value="<?= $s->getDesconto(); ?>" placeholder="Informe o Desconto em % (10%)">
        </div>
        <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 ">
            <!--<span class="glyphicon glyphicon-remove text-danger"></span>-->
        </div>

    
    <div class="form-group">
        <label class="col-xs-1 col-sm-1 col-md-1 col-lg-1" for="isPromocao">Promoção:</label>
        <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3 " >
            <input class="form-control" type="checkbox" id="isPromocao" name="isPromocao" <?= ($s->getIspromocao() ? "checked" : "" ) ?>>
        </div>
        <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 ">
            <!--<span class="glyphicon glyphicon-remove"></span>-->
        </div>
    </div>
        
    <button type="submit" class="btn btn-success"><span class="glyphicon glyphicon-ok-circle"></span> Salvar</button>
    <a href="?s=cservico" class="btn btn-danger"><span class="glyphicon glyphicon-remove-circle"></span> Cancelar</a>
</form>